<h3><?php echo $game['Games']['title']; ?></h3>
<ul class="list-tags">
<?php foreach($tags AS $tag_row): 
        $checked    =   '';
?>
    <?php if(in_array($tag_row['Tags']['id'], $games_tags)): 
        $checked    =   ' checked="checked"';
     endif; ?>
    <li><input<?php echo $checked; ?> type="checkbox" name="tags[]" value="<?php echo $tag_row['Tags']['id']; ?>" /><?php echo $tag_row['Tags']['title']; ?></li>
<?php endforeach; ?>
</ul>
<input type="hidden" name="gameid" id="savetags_gameid" value="<?php echo $game['Games']['id']; ?>" />
<input type="button" name="bt_tagsubmit" value="Gởi" id="bt_tagsubmit" onclick="saveTags();" />